<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * 微信图文素材扩展表
 * @package App\Models
 */
class WxMaterialNew extends Model
{
    use SoftDeletes;
    //主键
    protected $primaryKey = 'new_id';
    protected $dateFormat = 'Y-m-d H:i:s';
    /**
     * 应该被转换成原生类型的属性。
     * @var array
     */
    protected $casts = [
    ];

    /**
     * 素材主表数据
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function material()
    {
        return $this->belongsTo('App\Models\WxMaterial','material_id', 'material_id');
    }
}
